package com.eduagent.xwqeduagent.openFeign.client;

import com.eduagent.xwqeduagent.openFeign.entity.Course;
import com.eduagent.xwqeduagent.openFeign.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "teacher-service",url="http://192.168.233.57:8182")
public interface GetInfoClient {

    @GetMapping("/teachers/getCourseById/{id}")
    Result<Course> getCourseById(@PathVariable String id);

}